package com.whq.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whq.dao.BasicGarageImageLogMapper;
import com.whq.entity.BasicGarageImageLog;
import com.whq.service.BasicGarageImageLogService;

@Service(value = "tdBasicGarageImageLogService")
public class BasicGarageImageLogServiceImpl implements BasicGarageImageLogService {

    @Autowired
    private BasicGarageImageLogMapper<BasicGarageImageLog>tdBasicGarageImageLogMapper;
    
    @Override
    public Integer insertSelective(BasicGarageImageLog tdBasicGarageImageLog) throws Exception {
           return this.tdBasicGarageImageLogMapper.insertSelective(tdBasicGarageImageLog);
        }

    @Override
    public Integer insertBatch(List<BasicGarageImageLog> tdBasicGarageImageLog) throws Exception {
           return this.tdBasicGarageImageLogMapper.insertBatch(tdBasicGarageImageLog) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.tdBasicGarageImageLogMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.tdBasicGarageImageLogMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(BasicGarageImageLog tdBasicGarageImageLog) {
           return this.tdBasicGarageImageLogMapper.updateByPrimaryKeySelective(tdBasicGarageImageLog);
    }

    @Override
    public BasicGarageImageLog findById(Object id) {
           return (BasicGarageImageLog) this.tdBasicGarageImageLogMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<BasicGarageImageLog> selectByCondition(BasicGarageImageLog tdBasicGarageImageLog) {
           return (List<BasicGarageImageLog>) this.tdBasicGarageImageLogMapper.selectByCondition(tdBasicGarageImageLog);
    }

    @Override
    public Integer selectCountByCondition(BasicGarageImageLog tdBasicGarageImageLog) {
           return  this.tdBasicGarageImageLogMapper.selectCountByCondition(tdBasicGarageImageLog);
    }

}
